﻿namespace ElisVK.Data.AudioSources
{
    using System.Collections.ObjectModel;
    using Utils;

    public class VKRecommendationsAudioSource : AudioSource
    {
        public VKRecommendationsAudioSource() : base("VK Recommendations") {}

        public override ObservableCollection<Audio> GetAudios()
        {
            var page = VKHelper.PostRequest("http://vkontakte.ru/audio?act=recommendations", App.SessionInfo.Cookie);

            return new ObservableCollection<Audio>(VKHelper.ParseRecommendationsPost(page));
        }
    }
}
